package cn.stylefeng.guns.modular.location.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lww
 * @since 2023-12-19
 */
@Data
@TableName("real_location")
public class RealLocation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 车牌号
     */
    @TableField("vno")
    private String vno;

    /**
     * 车辆最后定位经度
     */
    @TableField("lon")
    private String lon;

    /**
     * 车辆最后定位维度
     */
    @TableField("lat")
    private String lat;

    /**
     * 车辆地理位置名称
     */
    @TableField("adr")
    private String adr;

    /**
     * 车辆定位时间
     */
    @TableField("utc")
    private String utc;

    /**
     * 速度
     */
    @TableField("spd")
    private String spd;


    /**
     * 省
     */
    @TableField("province")
    private String province;

    /**
     * 市
     */
    @TableField("city")
    private String city;

    /**
     * 县
     */
    @TableField("country")
    private String country;


    /**
     * 离线状态
     */
    @TableField("offline_state")
    private String offlineState;

    /**
     * 离线时长
     */
    @TableField("offline_time")
    private String offlineTime;


    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    private String account;


    @Override
    public String toString() {
        return "RealLocation{" +
        "id=" + id +
        ", vno=" + vno +
        ", adr=" + adr +
        ", utc=" + utc +
        ", spd=" + spd +
        ", province=" + province +
        ", city=" + city +
        ", country=" + country +
        ", offlineState=" + offlineState +
        ", offlineTime=" + offlineTime +
        ", createTime=" + createTime +
       ", account=" + account +
        "}";
    }
}
